package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 营销活动对象 mak_activity
 *
 * @author weixiao
 * @date 2023-01-27
 */
@TableName("mak_activity")
public class Activity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 活动id */
    @Excel(name = "活动id")
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    /** 活动名称 */
    @Excel(name = "活动名称")
    @TableField("aname")
    private String aname;

    /** 显示位置 */
    @Excel(name = "显示位置")
    @TableField("location")
    private String location;

    /** BANNER图 */
    @Excel(name = "BANNER图")
    @TableField("banner")
    private String banner;

    /** H5链接 */
    @Excel(name = "H5链接")
    @TableField("https")
    private String https;

    /** 有效开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("start_time")
    private Date startTime;

    /** 有效结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("end_time")
    private Date endTime;

    /** 活动规则 */
    @Excel(name = "活动规则")
    @TableField("rule")
    private String rule;

    /** 状态 */
    @Excel(name = "状态")
    @TableField("status")
    private String status;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setAname(String aname)
    {
        this.aname = aname;
    }

    public String getAname()
    {
        return aname;
    }
    public void setLocation(String location)
    {
        this.location = location;
    }

    public String getLocation()
    {
        return location;
    }
    public void setBanner(String banner)
    {
        this.banner = banner;
    }

    public String getBanner()
    {
        return banner;
    }
    public void setHttps(String https)
    {
        this.https = https;
    }

    public String getHttps()
    {
        return https;
    }
    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }
    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }

    public Date getEndTime()
    {
        return endTime;
    }
    public void setRule(String rule)
    {
        this.rule = rule;
    }

    public String getRule()
    {
        return rule;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("aname", getAname())
            .append("createTime", getCreateTime())
            .append("location", getLocation())
            .append("banner", getBanner())
            .append("https", getHttps())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("rule", getRule())
            .append("status", getStatus())
            .toString();
    }
}
